<template>
    <div class="side-menu">
        <el-menu :default-active="route.path" :ellipsis="false" :router="true" class="!border-r-0" >
            <MenuTree :menu="sidebar" :defaultActive="route.path" />
        </el-menu>
    </div>
</template>
<script lang="ts" setup>
import MenuTree from "./menuTree.vue";
const route = useRoute();
const { sidebar } = useMenu();
</script>